package com.itheima.service.impl;

import com.itheima.dao.AnnouncementDao;
import com.itheima.domain.Announcement;
import com.itheima.service.AnnouncementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AnnouncementServiceImpl implements AnnouncementService {
    @Autowired
    private AnnouncementDao announcementDao;
    @Override
    public void save(Announcement announcement) {
        announcementDao.save(announcement);
    }

    @Override
    public Announcement getAnnouncement() {
        return announcementDao.getAnnouncement();

    }
}
